package geralItemPedido;

import org.nakedobjects.extended.Entity;
import org.nakedobjects.object.AbstractNakedObject;
import org.nakedobjects.object.Title;
import org.nakedobjects.object.collection.ExtendedInternalCollection;
import org.nakedobjects.object.value.TextString;

@Entity
public class Departamento extends AbstractNakedObject{
	
	private TextString nome = new TextString();
	
	private final ExtendedInternalCollection itenspedidos = new ExtendedInternalCollection(
			"Itenspedidos", ItemPedido.class, this);
	
	public ExtendedInternalCollection getItenspedidos() {
		return itenspedidos;
	}
	
	public TextString getNome() {
		return nome;
	}

	@Override
	public Title title() {
		return this.getNome().title();
	}
}
